<#include "admin/home.html"/>
<#macro main>
    <h3 class="field-title">问题管理</h3>
    <div class="data-cnt">
        <form id="search-form" class="search-bar clearfix">
            <div class="query">
                <label class="lab">问题：</label>
                <div class="ipt w-1">
                    <input type="text" name="content" placeholder="请输入问题"/>
                </div>
            </div>
            <div class="query">
                <label class="lab">是否启用：</label>
                <div class="ipt">
                    <select name="enabled">
                        <option value="">--全部--</option>
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </div>
            </div>
            <div class="query">
                <span class="btn" onclick="doSearch()">查 询</span>
            </div>
        </form>
        <table class="tb-grid" id="quesTable">
            <thead>
            <tr>
                <th name="content">问题内容</th><th name="narrate">答案解说</th>
                <th name="enabled" customFormat="enabledFmt" style="width: 80px">是否启用</th>
                <th name="id" customFormat="operFmt">操作</th>
            </tr>
            </thead>
        </table>
    </div>
</#macro>

<#macro tplJs>
    <script type="text/javascript" src="${resCtx}/js/plugins/abel-grid.js"></script>
    <script type="text/javascript" src="${resCtx}/js/admin/question-list.js"></script>
</#macro>